<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title></title>

    <script>
        function cks(s) {
            var cont = s.content.value;
            var num = s.eId.value;
            if (cont!=""&&num!=0){
                return true;
            } else {
                alert("日程内容或者日程负责人不能为空！");
                return false;
            }
        }
    </script>

    <div th:include="commons :: comhead"></div>
</head>


<body class="sticky-header">

<section>
    <div th:replace="commons :: #left"></div>
    <!-- main content start-->
    <div class="main-content" >

        <!-- header section start-->
        <div th:replace="commons :: #search"></div>
        <!-- header section end-->

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                日程管理
            </h3>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            日程添加
                            <span class="tools pull-right">
                        <a href="javascript:;" class="fa fa-chevron-down"></a>
                        <a href="javascript:;" class="fa fa-times"></a>
                     </span>
                        </header>
                        <div class="panel-body">
                            <div class="adv-table editable-table ">
                                <div class="clearfix">
                                </div>
                                <div class="space15"></div>
                                <form action="/addschdule" method="post"  onsubmit="return cks(this)">
                                <table class="table table-striped table-hover table-bordered" id="editable-sample" width="60%">
                                    <thead>
                                    <tr align="center">
                                        <th>日程负责人</th>
                                        <th>日程有效时间(天)</th>
                                        <th>日程内容</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class=""  align="center">
                                        <td>
                                            <select class="form-control tooltips" name="eId">
                                                <option>选择执行人</option>
                                                <option th:each="emp:${empList}" th:value="${emp.deptno}" th:text="${emp.ename}"></option>
                                            </select>
                                        </td>
                                        <td > <select  name="validity" >
                                            <option value="1" selected>1天</option>
                                            <option value="2">2天</option>
                                            <option value="3">3天</option>
                                            <option value="4">4天</option>
                                            <option value="5">5天</option>
                                        </select></td>
                                        <td > <textarea name="content"></textarea></td>
                                        <td>
                                            <input  type="submit" value="确认添加"></input >
                                        </td>
                                    </tr>
                                    </tbody>
                                </table>
                                </form>
                            </div>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->

        <!--footer section start-->
        <footer>
            2020 &copy; AdminEx by ThemeBucket </a>
        </footer>
        <!--footer section end-->


    </div>
    <!-- main content end-->
</section>

<!-- Placed js at the end of the document so the pages load faster -->
<script src="js/jquery-1.10.2.min.js"></script>
<script src="js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="js/jquery-migrate-1.2.1.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/modernizr.min.js"></script>
<script src="js/jquery.nicescroll.js"></script>

<!--data table-->
<script type="text/javascript" src="js/data-tables/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>

<!--common scripts for all pages-->
<script src="js/scripts.js"></script>

<!--script for editable table-->
<script src="js/editable-table.js"></script>

<!-- END JAVASCRIPTS -->
<script>
    jQuery(document).ready(function() {
        EditableTable.init();
    });
</script>

</body>
</html>
